package com.waypolice.pojo;

import java.io.Serializable;
import java.util.Date;

public class CmsOriginaltext implements Serializable{
    private Integer otId;

    private Long otTbId;

    private Long otMbId;

    private Long otItemId;

    private String otArchiveMen;

    private String otUrl;

    private String otName;

    private String otAuthor;

    private String otVersionNum;

    private String otDes;

    private Date otCreateDate;

    private Date otEditDate;

    private String otStrOne;

    private Integer otStrTwo;

    private String otStrThree;

    private String otStrFour;

    private String otStrFive;

    public Integer getOtId() {
        return otId;
    }

    public void setOtId(Integer otId) {
        this.otId = otId;
    }

    public Long getOtTbId() {
        return otTbId;
    }

    public void setOtTbId(Long otTbId) {
        this.otTbId = otTbId;
    }

    public Long getOtMbId() {
        return otMbId;
    }

    public void setOtMbId(Long otMbId) {
        this.otMbId = otMbId;
    }

    public Long getOtItemId() {
        return otItemId;
    }

    public void setOtItemId(Long otItemId) {
        this.otItemId = otItemId;
    }

    public String getOtArchiveMen() {
        return otArchiveMen;
    }

    public void setOtArchiveMen(String otArchiveMen) {
        this.otArchiveMen = otArchiveMen == null ? null : otArchiveMen.trim();
    }

    public String getOtUrl() {
        return otUrl;
    }

    public void setOtUrl(String otUrl) {
        this.otUrl = otUrl == null ? null : otUrl.trim();
    }

    public String getOtName() {
        return otName;
    }

    public void setOtName(String otName) {
        this.otName = otName == null ? null : otName.trim();
    }

    public String getOtAuthor() {
        return otAuthor;
    }

    public void setOtAuthor(String otAuthor) {
        this.otAuthor = otAuthor == null ? null : otAuthor.trim();
    }

    public String getOtVersionNum() {
        return otVersionNum;
    }

    public void setOtVersionNum(String otVersionNum) {
        this.otVersionNum = otVersionNum == null ? null : otVersionNum.trim();
    }

    public String getOtDes() {
        return otDes;
    }

    public void setOtDes(String otDes) {
        this.otDes = otDes == null ? null : otDes.trim();
    }

    public Date getOtCreateDate() {
        return otCreateDate;
    }

    public void setOtCreateDate(Date otCreateDate) {
        this.otCreateDate = otCreateDate;
    }

    public Date getOtEditDate() {
        return otEditDate;
    }

    public void setOtEditDate(Date otEditDate) {
        this.otEditDate = otEditDate;
    }

    public String getOtStrOne() {
        return otStrOne;
    }

    public void setOtStrOne(String otStrOne) {
        this.otStrOne = otStrOne == null ? null : otStrOne.trim();
    }

    public Integer getOtStrTwo() {
        return otStrTwo;
    }

    public void setOtStrTwo(Integer otStrTwo) {
        this.otStrTwo = otStrTwo;
    }

    public String getOtStrThree() {
        return otStrThree;
    }

    public void setOtStrThree(String otStrThree) {
        this.otStrThree = otStrThree == null ? null : otStrThree.trim();
    }

    public String getOtStrFour() {
        return otStrFour;
    }

    public void setOtStrFour(String otStrFour) {
        this.otStrFour = otStrFour == null ? null : otStrFour.trim();
    }

    public String getOtStrFive() {
        return otStrFive;
    }

    public void setOtStrFive(String otStrFive) {
        this.otStrFive = otStrFive == null ? null : otStrFive.trim();
    }

    @Override
    public String toString() {
        return "CmsOriginaltext{" +
                "otId=" + otId +
                ", otTbId=" + otTbId +
                ", otMbId=" + otMbId +
                ", otItemId=" + otItemId +
                ", otArchiveMen='" + otArchiveMen + '\'' +
                ", otUrl='" + otUrl + '\'' +
                ", otName='" + otName + '\'' +
                ", otAuthor='" + otAuthor + '\'' +
                ", otVersionNum='" + otVersionNum + '\'' +
                ", otDes='" + otDes + '\'' +
                ", otCreateDate=" + otCreateDate +
                ", otEditDate=" + otEditDate +
                ", otStrOne='" + otStrOne + '\'' +
                ", otStrTwo=" + otStrTwo +
                ", otStrThree='" + otStrThree + '\'' +
                ", otStrFour='" + otStrFour + '\'' +
                ", otStrFive='" + otStrFive + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CmsOriginaltext that = (CmsOriginaltext) o;

        if (otId != null ? !otId.equals(that.otId) : that.otId != null) return false;
        if (otTbId != null ? !otTbId.equals(that.otTbId) : that.otTbId != null) return false;
        if (otMbId != null ? !otMbId.equals(that.otMbId) : that.otMbId != null) return false;
        if (otItemId != null ? !otItemId.equals(that.otItemId) : that.otItemId != null) return false;
        if (otArchiveMen != null ? !otArchiveMen.equals(that.otArchiveMen) : that.otArchiveMen != null) return false;
        if (otUrl != null ? !otUrl.equals(that.otUrl) : that.otUrl != null) return false;
        if (otName != null ? !otName.equals(that.otName) : that.otName != null) return false;
        if (otAuthor != null ? !otAuthor.equals(that.otAuthor) : that.otAuthor != null) return false;
        if (otVersionNum != null ? !otVersionNum.equals(that.otVersionNum) : that.otVersionNum != null) return false;
        if (otDes != null ? !otDes.equals(that.otDes) : that.otDes != null) return false;
        if (otCreateDate != null ? !otCreateDate.equals(that.otCreateDate) : that.otCreateDate != null) return false;
        if (otEditDate != null ? !otEditDate.equals(that.otEditDate) : that.otEditDate != null) return false;
        if (otStrOne != null ? !otStrOne.equals(that.otStrOne) : that.otStrOne != null) return false;
        if (otStrTwo != null ? !otStrTwo.equals(that.otStrTwo) : that.otStrTwo != null) return false;
        if (otStrThree != null ? !otStrThree.equals(that.otStrThree) : that.otStrThree != null) return false;
        if (otStrFour != null ? !otStrFour.equals(that.otStrFour) : that.otStrFour != null) return false;
        return otStrFive != null ? otStrFive.equals(that.otStrFive) : that.otStrFive == null;
    }

    @Override
    public int hashCode() {
        int result = otId != null ? otId.hashCode() : 0;
        result = 31 * result + (otTbId != null ? otTbId.hashCode() : 0);
        result = 31 * result + (otMbId != null ? otMbId.hashCode() : 0);
        result = 31 * result + (otItemId != null ? otItemId.hashCode() : 0);
        result = 31 * result + (otArchiveMen != null ? otArchiveMen.hashCode() : 0);
        result = 31 * result + (otUrl != null ? otUrl.hashCode() : 0);
        result = 31 * result + (otName != null ? otName.hashCode() : 0);
        result = 31 * result + (otAuthor != null ? otAuthor.hashCode() : 0);
        result = 31 * result + (otVersionNum != null ? otVersionNum.hashCode() : 0);
        result = 31 * result + (otDes != null ? otDes.hashCode() : 0);
        result = 31 * result + (otCreateDate != null ? otCreateDate.hashCode() : 0);
        result = 31 * result + (otEditDate != null ? otEditDate.hashCode() : 0);
        result = 31 * result + (otStrOne != null ? otStrOne.hashCode() : 0);
        result = 31 * result + (otStrTwo != null ? otStrTwo.hashCode() : 0);
        result = 31 * result + (otStrThree != null ? otStrThree.hashCode() : 0);
        result = 31 * result + (otStrFour != null ? otStrFour.hashCode() : 0);
        result = 31 * result + (otStrFive != null ? otStrFive.hashCode() : 0);
        return result;
    }
}